﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace EPIClientRssWP7
{
	public class NavigationPackage<T>
	{
		public NavigationPackage(T classObject, Uri uri)
		{
            UriNextPage = uri;
            Data = classObject;
        }

        public Uri UriNextPage { get; set; }

        public T Data { get; set; }

        public Uri getFormatedUri()
        {
            if (Data is string)
                return new Uri(UriNextPage, "?msg=" + Data as string);
            else
                return new Uri(UriNextPage, "?" + reflexiveData());
        }

        private string reflexiveData()
        {
            return "";
        }
	}
}